Drawing.intersect Method

Returns the intersection of two rectangles. If no intersection exists the left, right, top, and bottom properties are undefined.
 
 
Static This method is static.

Parameters

rect1

Type: Rect
The first rectangle.
rect2

Type: Rect
The second rectangle.

Return Value


Type: Rect
A rectangle defining the intersection area, with a width and height of zero if no intersection.